$(function () {
    $.ajax({
        url:"http://localhost:8080/back/font/topInfo",
        dataType:'json',
        headers:{'username':localStorage.getItem("loginUser")},
        success:function (data) {
            /*if(data.count==403){
                window.location.href = "http://localhost:63342/front_page/html/login.html"
            }*/
            console.log("前端top返回数据",data.data)
            setTopInfo(data.data[0])
        }
    })
})

//设置头部信息
function setTopInfo(data) {

    $("#company_logo").attr("src",data.logoImg);
    $("#title").html(data.title);


    $("#phone_logo").attr("src",data.phoneLogo);
    $("#phoneInfo").attr("src",data.phone);


    $(".info > div:nth-child(1)").html(data.contentCn)
    $(".info > div:nth-child(2)").html(data.contentEn)

}